import listBuilder from "@/comps/list/listBuilder";

/*
lb.add("sn","单据编号",80)
lb.add("title","单据主题",80)
lb.add("payType","付款方式",80)
lb.add("deliver","交货地点",80)
lb.add("contactEmp","业务员",80)
lb.add("contact","联系人",80)
lb.add("contactPhone","联系电话",80)
lb.add("status","状态",80)
lb.add("isCancel","是否取消",80)
lb.add("isClose","是否关闭",80)
lb.add("isConfirm","是否生效",80)
lb.add("confirmAt","生效时间",80)
lb.add("formAt","制单时间",80)
lb.add("formEmp","制单人",80)
lb.add("createEmp","创建人",80)
lb.add("note","备注",80)
lb.add("product","产品",80)

*/
export default function () {
    let lb = listBuilder()
    lb.add("id","#",80)
    lb.addAction(120).setAlignRight()

    lb.add("sn","单据编号",220).setCopy()
    lb.add("title","单据主题",280)
    lb.add("payType","付款方式",120).setListIsObjectName()
    lb.add("deliver","交货地点",180)
    lb.add("contactEmp","业务员",120).setListIsObjectName()
    lb.add("contact","联系人",180)
    lb.add("contactPhone","联系电话",180)
    lb.add("status","状态",120).setListIsStatus()
    lb.add("isCancel","是否取消",80).setListIsSwitch()
    lb.add("isClose","是否关闭",80).setListIsSwitch()
    lb.add("isConfirm","是否生效",80).setListIsSwitch()
    lb.add("confirmAt","生效时间",180).setListIsDateTime()
    lb.add("formAt","制单时间",180).setListIsDateTime()
    lb.add("createAt","创建时间",180).setListIsDateTime()
    lb.add("updateAt","更新时间",180).setListIsDateTime()
    lb.add("formEmp","制单人",120).setListIsObjectName()
    lb.add("createEmp","创建人",120).setListIsObjectName()
    lb.add("note","备注",0)
    return lb.headers
}